< previous page page_671 next page >

Page 671
Tools Used with VBScript
To use VBScript, you need to have the right tools. The following sections provide a brief rundown of some items that make working with VBScript easier.
The VB Scripting Engine
The Script code is interpreted and executed by a scripting engine. The scripting engine for VBScript is a file named VBSCRIPT.DLL, located in the \Windows\System directory. VBScript is installed with one of the applications that use it, such as Internet Explorer, Outlook, Internet Information Server, or the Windows Scripting Host. However, a few different versions of VBScript have been released, and some of the examples in this chapter may not work with VBScript versions prior to 3.0. To determine the version you have installed, right-click the VBSCRIPT.DLL file in Explorer and choose Properties, as shown in Figure 30.4.
0671-01.jpg
Figure 30.4
Make sure that you are using the
latest VBScript engine by checking
the properties of VBSCRIPT.DLL.
Another indication that your version of VBScript is old is an error when you attempt to use an intrinsic constant (such as vbYesNo in the earlier example), because these constants were not included in the first version. If you want to upgrade to the latest version of VBScript, visit the Web site at http://www.microsoft.com/vbscript. This site contains downloadable files for the latest scripting engines that you can place on your Web site, as well as documentation for the VBScript language.
Host Application
The applications with which you can use VBScript are also known as hosts for VBScript. The most common hosts are Internet Explorer and Internet Information Server. Outlook also uses VBScript as its macro language. In addition, Microsoft recently introduced the Windows Scripting host, which allows you to run VBScript code from a regular Windows platform such as Windows NT or Windows 95.

 
< previous page page_671 next page >